 
var exec = require('cordova/exec');

exports.startListen = function(success, error) {
  exec(success, error, "Jfyun", "startListen", []);
};

exports.stopListen=function(success,error){
  exec(success,error,"Jfyun","stopListen",[]);
};

exports.startSpeak = function(success, error,speakMessage) {
  exec(success, error, "Jfyun", "startSpeak", [speakMessage]);
};
exports.stopSpeak=function(success,error){
  exec(success,error,"Jfyun","stopSpeak",[]);
};
